import {Pagination} from 'antd'

// type AntPaginationPropsType = {
//     total: number,
//     currentPage: number,
//     pageSize: number,
//     onChange: Function
//
// }

const AntPagination = ({currentPage, onChange, total, pageSize}) => {


    return (
        <Pagination defaultCurrent={currentPage}
                    pageSize={pageSize || 10}
                    onChange={(page, pageSize) => onChange(page, pageSize)}
                    total={total}
        />
    )
}

export default AntPagination